package com.vehicle.mapper;

import com.vehicle.pojo.ViolationRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 违章记录
 */
public interface ViolationRecordMapper {
    /**
     * 查询违章记录
     * @param violationRecord
     * @return
     */
    public List<ViolationRecord> selectViolationRecord(ViolationRecord violationRecord);

    //根据id删除 弃用 改用假删
    @Deprecated
    public void deleteViolationRecord(@Param("violationid") int violationid);

    /**
     * 假删
     * @param violationid
     */
    public void updateStatusByViolationId(@Param("violationid") int violationid);

    /**
     * 增加违章记录
     * @param violationRecord
     */
    public void addViolationRecord(ViolationRecord violationRecord);

    /**
     * 修改违章记录
     * @param violationRecord
     */
    public void updateViolationRecord(ViolationRecord violationRecord);
}
